package cn.wolfcode.enums;

import lombok.Getter;

@Getter
public enum ConsumptionReportEnums {
    //就类似创建对象
    BUSINESS("门店","business.`name`"),
    YEAR("年","DATE_FORMAT(consumption.pay_time,'%Y')"),
    MONTH("月","DATE_FORMAT(consumption.pay_time,'%Y%m')"),
    DAT("日","DATE_FORMAT(consumption.pay_time,'%Y%m%d')");
    //对象里有什么属性
    private String name;
    private String sql;

    //定义一个有参构造方法
    ConsumptionReportEnums(String name,String sql){
        this.name=name;
        this.sql=sql;
    }
}
